package cn.accp.war.baseEntity;

//怪物类
public abstract class Monster {
	// 怪物名
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	// 种族
	private String family;

	public String getFamily() {
		return family;
	}

	public void setFamily(String family) {
		this.family = family;
	}

	// 怪物攻击力
	private int power;

	public int getPower() {
		return power;
	}

	public void setPower(int power) {
		if (power > 0) {
			this.power = power;
		} else {
			power = 100;
		}
	}

	public Monster() {
	}

	public Monster(String name, String family, int power) {
		this.name = name;
		this.family = family;
		this.setPower(power);
	}

	public Monster(Monster monster) {
		this.name = monster.name;
		this.family = monster.family;
		this.power = monster.power;
	}

	public abstract void attack();

	public abstract void run();

	public abstract void jump();

	public abstract void showMe();
}